/**
 * 
 * @class NG.response.TiledProjectInfo
 * @extends Ext.util.Observable
 */
NG.response.TiledProjectInfo = Ext.extend(NG.response.Response, {

	tileSizeInPixel: null,
	
	projectWholeWorld: null,

	constructor: function(config){
		NG.response.TiledProjectInfo.superclass.constructor.call(this, config);
	},
	
	/**
	 * Parses given xmlData (response data) <br>
	 * Fulfills {NG.response.TiledProjectInfo} members according to parsed xml data
	 * 
	 * @param {String} xmlData - response data
	 * Called by {@link NG.response.Response.constructor}
	 */
	init: function (xmlData) {
		NG.response.TiledProjectInfo.superclass.init.call(this, xmlData);
		var xmlStr = fleegix.xml.parse(fleegix.xml.createDoc(xmlData), 'string').string;
		var projectWholeWorld = fleegix.xml.parse(fleegix.xml.createDoc(xmlStr), 'PROJECTWHOLEWORLD').PROJECTWHOLEWORLD;
		var tileSizeInPixel = fleegix.xml.parse(fleegix.xml.createDoc(xmlStr), 'TILESIZEINPIXEL').TILESIZEINPIXEL;
		this.projectWholeWorld = projectWholeWorld;
		this.tileSizeInPixel = tileSizeInPixel;
	},

	getTileSizeInPixel: function () {
		return this.tileSizeInPixel;
	},

	getProjectWholeWorld: function () {
		return this.projectWholeWorld;
	}
	
});